
#region Imports

using System;

#endregion

namespace Justa.Service
{
    /// <summary>
    /// 
    /// </summary>
    /// 
    /// <author>Abel Perez (java.aperez@gmail.com)</author>
    /// 
    public interface ICacheService
    {
        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// 
        void Add(string key, object value);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="key"></param>
        /// 
        void Remove(string key);

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="key"></param>
        /// 
        /// <returns></returns>
        /// 
        object Fetch(string key);

        /// <summary>
        /// 
        /// </summary>
        /// 
        void Flush();

        /// <summary>
        /// 
        /// </summary>
        /// 
        /// <param name="key"></param>
        /// 
        /// <returns></returns>
        /// 
        bool Contains(string key);
    }
}
